package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Lorine
 * @date 2025/2/27 17:18
 */
@Component
@Slf4j
public class ReservationJob {
    @Autowired
    private IReservationService reservationService;

    /**
     * 更新预约状态
     */
    public void updateContractStatus() {
        log.warn("更新预约状态任务开始");
        reservationService.updateReservationStatus();
    }
}
